<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:fb="http://ogp.me/ns/fb#" xmlns:addthis="http://www.addthis.com/help/api-spec">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php
if ( is_single() ) { if ( in_category(17) ) { ?>【アクセスロード】<?php } elseif ( in_category(468)){ ?>【アーティスト】<?php } } 
global $page, $paged;
wp_title( '-', true, 'right' ); 
bloginfo( 'name' ); 
$site_description = get_bloginfo( 'description', 'display' );
if ( is_front_page() ) { ?> : 発信は終わらない<?php }
?></title>
<meta name="viewport" content="width=device-width">
<meta name="keywords" content="<?php wp_title(',', true, 'right'); ?>パブリックアクセス,ニュース,ジャーナリズム,動画共有,市民記者,メディア,8bit,エイトビット,8ビット,Youtube,Facebook" />
<meta name="description" content="<?php wp_title('の詳細はこちら。 - ', true, 'right'); ?>発信は終わらない" />
<meta name="google-translate-customization" content="a53d2ef5b345acea-6afeb33e5daf90f4-g89e28d84f2eeda28-11" />
<meta property="fb:admins" content="chata420" />
<meta property="fb:app_id" content="389479327765328" />
<meta property="og:site_name" content="8bitNews" />
<?php if (is_home()) : ?>
<meta property="og:title" content="ニュースを創るのはあなただ！[ 8bitNews ]" />
<meta property="og:url" content="http://8bitnews.asia/" />
<meta property="og:image" content="<?php echo home_url(); ?>/images/thumb.jpg" />
<?php elseif (is_single()) : ?>
<?php if (in_category(468)) : ?>
<meta property="og:image" content="<?php echo home_url(); ?>/images/thumb.jpg" />
<?php else : ?>
<meta property="og:type" content="video" />
<meta property="og:video" content="<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $youtubeUrl = post_custom('youtube'); ?>
http://www.youtube.com/v/<?php the_field('youtube'); ?>?version=3&amp;autohide=1<?php endwhile; endif; ?>">
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:video:width" content="1280" />
<meta property="og:video:height" content="720" />
<?php endif; ?>
<?php else : ?>
<meta property="og:image" content="<?php echo home_url(); ?>/images/thumb.jpg" />
<?php endif; ?>
<meta property="og:description" content="<?php if ( is_single() ) { if ($post->post_excerpt){ echo $post->post_excerpt; } else { $summary = strip_tags($post->post_content); $summary = str_replace("n", "", $summary); $summary = mb_substr($summary, 0, 140). "…"; echo $summary; } } else { wp_title(); }  if ( is_front_page() ) { ?>発信は終わらない<?php } if ( is_category() ) { ?>の一覧<?php }?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link type="text/css" rel="stylesheet" href="<?php echo home_url(); ?>/style/default.css" />
<link rel="shortcut icon" type="/favicon.ico">
<link rel="apple-touch-icon" href="/favicon.ico" />
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-506e721a541bb9d3"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<?php echo home_url(); ?>/script/ticker.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('p.message2u em').click(function(){
$('.gl_maps').animate({height: "toggle"}, 600);
$(this).toggleClass("highlight");
$('body,html').animate({scrollTop: "+=800"}, 600);
});
$('#totop').hide();
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$('#totop').fadeIn();
} else {
$('#totop').fadeOut();
}
});
$('#totop a').click(function () {
$('body,html').animate({
scrollTop: 0
}, 600);
return false;
});
});
var modern = "#aaa";
var visib = "";
var cssset = "color";
$('#textInput').css(cssset,modern).focus(function(){if($(this).val() == this.defaultValue)$(this).css(cssset,visib).val("");}).blur(function(){if($(this).val() == "")$(this).css(cssset,modern).val(this.defaultValue);});
$('#search_box').click(function(){if($('#textInput').val() == "キーワード検索")$('#textInput').val("");});
});
$(function(){
$(".ticker li").newsTicker({type:"move1"});
});
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32651383-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
var addthis_config = {
"data_track_addressbar":true
};
var addthis_share = {
url_transforms : {
shorten: {
twitter: 'bitly',
facebook: 'bitly'
}
},
shorteners : {
bitly : {
login: 'o_305haoa2nv',
apiKey: 'R_4508ce285f80d36c0b101cf3ae5afbaa'
}
}
};
</script>
</head>
<body>
<div id="header">
<div id="logo"><a href="<?php echo home_url(); ?>/"><img src="<?php echo home_url(); ?>/images/thumb.jpg" alt="8bitNews" /></a></div>
<ul id="submenu">
<?php if (is_user_logged_in()) { ?>
<li id="signin"><a href="<?php echo home_url(); ?>/wp-admin/post-new.php">投稿する</a></li>
<?php } else { ?>
<li id="signin"><a href="<?php echo home_url(); ?>/wp-admin/post-new.php">投稿する</a></li>
<li id="upload"><a href="<?php echo home_url(); ?>/wp-login.php?action=register">参加する</a></li>
<li id="login"><a href="<?php echo home_url(); ?>/wp-login.php">ログイン</a></li>
<?php } ?>
</ul>
<ul id="help">
<li><a href="<?php echo home_url(); ?>/?page_id=78">8bitNews？</a></li>
<li><a href="<?php echo home_url(); ?>/?page_id=423t">Privacy Policy</a></li>
</ul>
<div id="search">
<form method="get" action="<?php bloginfo('url'); ?>/">
<div id="wordbox"><input type="text" name="s" value="キーワード検索" id="textInput" /></div>
<div id="buttonbox"><input type="submit" value="検索" id="search_box" /></div>
</form>
</div>
</div>
<div id="newsticker">
<span>BREAKING NEWS</span>
<div class="ticker" id="ticker">
<ul>
<?php query_posts('showposts=3&cat=18'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $thickerLink = post_custom('thicker_link'); ?>
<li><?php the_time('Y/m/d'); ?>&nbsp;<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; endif; ?>
<?php wp_reset_query(); ?>
</ul>
</div>
</div>